Service Bus (1 / 26): You are designing a notification system using Azure Service Bus. Messages contain the following properties:
Temperature
: the temperature reading.
Location
: the location of the reading.
You need to create a subscription that handles messages that are not generated from South America and not above 40 degrees. Which filter type should you implement?
Answer:
An SQL Filter allows you to write complex conditions using SQL-like expressions. In this scenario, you need to filter messages based on multiple conditions related to temperature, and location. An SQL Filter can handle this complexity, such as new SqlRuleFilter("Temperature < 40 AND AND Location <> 'South America'")
.